/**  
* <p>Title: PasswordExpired.java</p>  
* <p>Description: </p>  
* <p>Copyright: Copyright (c) 2017</p>  
* @author Administrator
* @date 2020年3月3日  
* @version 1.0  
*/  
package com.skivingcloud.admin.shiro;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**  
* <p>Title: PasswordExpired</p>  
* <p>Description: </p>  
* @author hushouquan  
* @date 2020年3月3日  
*/
@Component
@ConfigurationProperties(prefix = "admin.password.expired")
public class PasswordExpired {
	/**
	 * 密码过期时间
	 */
	private int days = 90;
	
	/**
	 * 离过期几天开始提醒
	 */
	private int alarm = 10;
	
	/**
	 * 密码过期是否锁定用户
	 */
	private boolean lock = false;
	
	/**
	 * 是否强制修改密码
	 */
	private boolean forcechangepwd = false;
	

	/**
	 * 离密码过期几天强制修改密码
	 */
	private int forcedays = 5;


	public PasswordExpired() {
		super();
	}


	public int getDays() {
		return days;
	}


	public void setDays(int days) {
		this.days = days;
	}


	public int getAlarm() {
		return alarm;
	}


	public void setAlarm(int alarm) {
		this.alarm = alarm;
	}


	public boolean isLock() {
		return lock;
	}


	public void setLock(boolean lock) {
		this.lock = lock;
	}


	public boolean isForcechangepwd() {
		return forcechangepwd;
	}


	public void setForcechangepwd(boolean forcechangepwd) {
		this.forcechangepwd = forcechangepwd;
	}


	public int getForcedays() {
		return forcedays;
	}


	public void setForcedays(int forcedays) {
		this.forcedays = forcedays;
	}


	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("PasswordExpired [days=");
		builder.append(days);
		builder.append(", alarm=");
		builder.append(alarm);
		builder.append(", lock=");
		builder.append(lock);
		builder.append(", forcechangepwd=");
		builder.append(forcechangepwd);
		builder.append(", forcedays=");
		builder.append(forcedays);
		builder.append("]");
		return builder.toString();
	}
	
}
